<?php /* Smarty version Smarty-3.1.6, created on 2018-05-28 16:52:37
         compiled from "D:/phpStudy/PHPTutorial/WWW/myshop/Admin/View\IntegralGoods\editintegralgoods.html" */ ?>
<?php /*%%SmartyHeaderCode:4471862565ae8326b0a86b3-11500873%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'cd402904d718f1e7ed563f7408d25182e160fe07' => 
    array (
      0 => 'D:/phpStudy/PHPTutorial/WWW/myshop/Admin/View\\IntegralGoods\\editintegralgoods.html',
      1 => 1527497553,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '4471862565ae8326b0a86b3-11500873',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.6',
  'unifunc' => 'content_5ae8326b132c3',
  'variables' => 
  array (
    'info' => 0,
    'cats' => 0,
    'v' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_5ae8326b132c3')) {function content_5ae8326b132c3($_smarty_tpl) {?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<link href="<?php echo @ADMIN_CSS_PATH;?>
style.css" rel="stylesheet" type="text/css" />
</head>

<body>

	<div class="place">
    <span>位置：</span>
    <ul class="placeul">
    <li><a href="<?php echo @__MODULE__;?>
/index/main">首页</a></li>
    <li><a href="<?php echo @__CONTROLLER__;?>
/goalstore">商品列表</a></li>
    <li>修改商品信息	</li>
    </ul>
    </div>
    
    <div class="formbody">
    
    <div class="formtitle"><span>基本信息</span></div>
    <form action="<?php echo @__SELF__;?>
" method="post" enctype="multipart/form-data">
    <ul class="forminfo">
    <li style="display: none;"><label>商品id</label><input name="id" value="<?php echo $_smarty_tpl->tpl_vars['info']->value['id'];?>
" id="id" type="text" class="dfinput" /></li>
    <li><label>商品名称</label><input name="name" id="name" type="text" class="dfinput" value="<?php echo $_smarty_tpl->tpl_vars['info']->value['name'];?>
"/></li>
    <li><label>商品价格</label><input name="price" id="price" type="text" class="dfinput" value="<?php echo $_smarty_tpl->tpl_vars['info']->value['price'];?>
" /></li>
    <li><label>商品原价</label><input name="ori_price" id="ori_price" type="text" class="dfinput"  value="<?php echo $_smarty_tpl->tpl_vars['info']->value['ori_price'];?>
"/></li>
    <li><label>商品属性:</label>  
    <select class="select3" name="type" id="type">
    <option value="1" selected="selected">普通商品</option>
    <option value="2" <?php if ($_smarty_tpl->tpl_vars['info']->value['type']==2){?>selected="selected"<?php }?>>积分商品</option>
    </select>
    </li>
    <li><label>商品分类:</label>  
    <select class="select3" name="cat_uid" id="cat_uid">
    <!--<option value="1" selected="selected">上架</option>-->
     <option value="0" selected="selected">无</option>
    <?php  $_smarty_tpl->tpl_vars['v'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['v']->_loop = false;
 $_smarty_tpl->tpl_vars['k'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['cats']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['v']->key => $_smarty_tpl->tpl_vars['v']->value){
$_smarty_tpl->tpl_vars['v']->_loop = true;
 $_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['v']->key;
?>
    <option value="<?php echo $_smarty_tpl->tpl_vars['v']->value['uid'];?>
" <?php if ($_smarty_tpl->tpl_vars['v']->value['uid']==$_smarty_tpl->tpl_vars['info']->value['cat_uid']){?>selected="selected"<?php }?>><?php echo $_smarty_tpl->tpl_vars['v']->value['title'];?>
</option>
    <?php } ?>
    </select>
    </li>
    <li><label>剩余数量</label><input name="count" id="count" type="text" class="dfinput"  value="<?php echo $_smarty_tpl->tpl_vars['info']->value['count'];?>
"/></li>
    <li><label>商品销量</label><input name="salecount" id="salecount" type="text" class="dfinput"  value="<?php echo $_smarty_tpl->tpl_vars['info']->value['salecount'];?>
"></li>
    <li><label>排序值</label><input name="sort" id="sort" type="text" class="dfinput"  value="<?php echo $_smarty_tpl->tpl_vars['info']->value['sort'];?>
"></li>
    <li><label>运费</label><input name="delivery_fee" id="delivery_fee" type="text" class="dfinput" value="<?php echo $_smarty_tpl->tpl_vars['info']->value['delivery_fee'];?>
"></li>
    <li><label>购买限制</label><input name="buy_limit" id="buy_limit" type="text" class="dfinput" value="<?php echo $_smarty_tpl->tpl_vars['info']->value['buy_limit'];?>
"></li>
    <li class="showimg"><label>当前图片</label><span><img src="<?php echo $_smarty_tpl->tpl_vars['info']->value['main_img'];?>
" style="width: 168px;height: 126px;"/></span></li>
    <li><label>上传图片</label><input name="main_img" id="main_img" type="file" /><i>推荐大小640*360</i></li>
    <li><label>商品详情</label><textarea name="detail" id="detail" cols="" rows=""  value="<?php echo $_smarty_tpl->tpl_vars['info']->value['detail'];?>
"  style="overflow-y:scroll;overflow-x:scroll;" placeholder="如：1.描述描述描述。。。</br>" class="textinput"></textarea><i>转行处请加英文&lt;/br&gt;</i></li>
    <li><label>商品状态</label><cite><input name="status" type="radio" value="1" checked="checked" />上架&nbsp;&nbsp;&nbsp;&nbsp;<input name="status" type="radio" value="0" <?php if ($_smarty_tpl->tpl_vars['info']->value['status']==0){?>checked="checked"<?php }?>/>下架</cite></li>
    <li><label>&nbsp;</label><input type="submit" class="btn" value="确认保存"/></li>
    </ul>
    </form>
    
    </div>
    <script type="text/javascript" src="<?php echo @ADMIN_JS_PATH;?>
jquery.js"></script>
    <script type="text/javascript">
    	$('#main_img').change(function(){ //预览图片
		  var src=window.URL.createObjectURL(document.getElementById('main_img').files[0]);
		  $('.showimg img').attr('src',src);
		});
    </script>
</body>
</html>
<?php }} ?>